package com.zkyc.framework.website.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zkyc.framework.common.pojo.ColumnRefColumnData;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ColumnRefColumnDataMapper extends BaseMapper<ColumnRefColumnData> {
    @Insert("<script>" +
            "INSERT INTO web_column_ref_column_data (column_id, column_data_id, order_num) VALUES" +
            "<foreach collection='list' item='item' index='index' separator=','>" +
            "(#{item.columnId}, #{item.columnDataId}, #{item.orderNum})" +
            "</foreach>" +
            "</script>")
    int insertBatch(List<ColumnRefColumnData> columnRefColumnDataList);
}
